How to serialize the same object type in two JSON formats

join shbcf.ru